<div class="comment" id="c<?php echo $data->id; ?>">

	<div class="author">
		<?php echo $data->PhoneNumber; ?> says
		
	</div>

	<div class="time">
		<?php if($data->status==Sms::STATUS_PENDING): ?>
			<span class="pending">Pending approval</span> |
			<?php echo CHtml::linkButton('Approve', array(
				'submit'=>array('sms/approve','id'=>$data->id),
			)); ?> |
		<?php endif; ?>
		<?php echo CHtml::link('Update',array('sms/update','id'=>$data->id)); ?> |
		<?php echo CHtml::linkButton('Delete', array(
			'submit'=>array('sms/delete','id'=>$data->id),
			'confirm'=>"Are you sure to delete sms #{$data->id}?",
		)); ?> |
		<?php echo $data->DateTime; ?>
	</div>

	<div class="content">
		<?php echo $data->Text_Other; ?>
	</div>

</div><!-- comment -->